<?php namespace Common\Model;
use Hdphp\Model\Model;
//订单列表模型类
class Orderlist extends Model{
	protected $table="orderlist";
	protected $validata=array(
		array('number','required','数量不能为空',3,3),
		array('subtotal','required','价格小计不能为空',3,3));
	
	public function store($orderlist){
		//			执行添加
			if(!$this->create($orderlist))return false;
				return $this->add($orderlist);
				
			
		
		
		
	}

}